//
//  SQStatusCellToolBar.swift
//  SwiftWeibo
//
//  Created by 苏强 on 16/12/5.
//  Copyright © 2016年 suqianghotel. All rights reserved.
//

import UIKit

class SQStatusCellToolBar: UIView {
    
    
    var viewModel: SQStatusViewModel?{
        didSet{
            retweetedButton.setTitle(viewModel?.retweetCountString, for: .normal)
            commentButton.setTitle(viewModel?.commentCountString, for: .normal)
            likeButton.setTitle(viewModel?.likeCountString, for: .normal)
        }
    }
    
    /// 转发
    @IBOutlet weak var retweetedButton: UIButton!
    /// 评论
    @IBOutlet weak var commentButton: UIButton!
    /// 点赞
    @IBOutlet weak var likeButton: UIButton!
    
    
    override init(frame: CGRect) {
        super.init(frame: frame)
    
    }

    required init?(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
        print("init----->aDecoder")
        
    }
    
    override func awakeFromNib() {
        
        super.awakeFromNib()
        
        
        print("init----->awakeFromNib")
        
        //        self.layer.contents = UIImage(named: "timeline_card_bottom_background")?.cgImage
//        self.backgroundColor = UIColor.red
//        self.retweetedButton.backgroundColor = UIColor.orange
    }
    
 

}
